package com.borya.filter.auth;

/**
 * token校验请求体
 */
public class AuthRequest {
    /**
     * 用户ID
     */
    private String userId;
    /**
     * App类型
     */
    private String appType;
    /**
     * 系统类型。1：ios，2：android,3:web
     */
    private int osType;
    /**
     * app版本
     */
    private int appVersion;
    /**
     * 系统版本
     */
    private String osVersion;

    private String url;
    private String body;
    private String host;
    /**
     * 校验
     */
    private String sign;


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public int getOsType() {
        return osType;
    }

    public void setOsType(int osType) {
        this.osType = osType;
    }

    public int getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(int appVersion) {
        this.appVersion = appVersion;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "AuthRequest{" +
                "userId='" + userId + '\'' +
                ", appType='" + appType + '\'' +
                ", osType=" + osType +
                ", appVersion=" + appVersion +
                ", osVersion='" + osVersion + '\'' +
                '}';
    }

    public static class UserToken {
        private String url;
        private String host;
        private String tmsi;
        private String appVersion;
        private String osVersion;
        private String osType;
        private String phoneType;
        private String net;
        private String applicationId;
        private String longitude;
        private String latitude;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getHost() {
            return host;
        }

        public void setHost(String host) {
            this.host = host;
        }

        public String getTmsi() {
            return tmsi;
        }

        public void setTmsi(String tmsi) {
            this.tmsi = tmsi;
        }

        public String getAppVersion() {
            return appVersion;
        }

        public void setAppVersion(String appVersion) {
            this.appVersion = appVersion;
        }

        public String getOsVersion() {
            return osVersion;
        }

        public void setOsVersion(String osVersion) {
            this.osVersion = osVersion;
        }

        public String getOsType() {
            return osType;
        }

        public void setOsType(String osType) {
            this.osType = osType;
        }

        public String getPhoneType() {
            return phoneType;
        }

        public void setPhoneType(String phoneType) {
            this.phoneType = phoneType;
        }

        public String getNet() {
            return net;
        }

        public void setNet(String net) {
            this.net = net;
        }

        public String getApplicationId() {
            return applicationId;
        }

        public void setApplicationId(String applicationId) {
            this.applicationId = applicationId;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        @Override
        public String toString() {
            return "UserToken{" +
                    "url='" + url + '\'' +
                    ", host='" + host + '\'' +
                    ", tmsi='" + tmsi + '\'' +
                    ", appVersion='" + appVersion + '\'' +
                    ", osVersion='" + osVersion + '\'' +
                    ", osType='" + osType + '\'' +
                    ", phoneType='" + phoneType + '\'' +
                    ", net='" + net + '\'' +
                    ", applicationId='" + applicationId + '\'' +
                    ", longitude='" + longitude + '\'' +
                    ", latitude='" + latitude + '\'' +
                    '}';
        }
    }


}
